$--color-primary: #2dce89;
$--text-color-primary: #303133;

$--color-f5: #c2bfbf;
$--color-white: #ffffff;

$menu-light-bg: #42424a;
$menu-dark-bg: #39393f;
$menu-hover: hsla(0, 0%, 78%, .2);
$border-color: #d8dce5;
$box-shadow-color: #c2c2c4;
$main-bg: #f5f6fa;

.el-main {
    padding: 0;
    overflow-x: hidden;

    .search {
        .el-button {
            // width: 76px;
            height: 30px;
        }
    }

    .el-pagination {
        margin-top: 15px;
    }
}

.layout {
    height: 100%;

    .aside {
        background-color: $menu-light-bg;
        // width: 220px;
    }

    .header {
        height: 70px;
        border-bottom: 1px solid $border-color;
        display: flex;
        align-items: center;
        padding: 10px;
        justify-content: space-between;

        .collaose-bread {
            display: flex;
            align-items: center;
        }

        background-color: $main-bg;
    }

    .main {
        padding: 0px;
        background-color: $main-bg;

        .tabs {
            .el-tabs__header {
                border-bottom: 1px solid $border-color;
                box-shadow: 0 5px 8px -5px $box-shadow-color;
                margin: 0 0 1px;
                .el-tabs__nav {
                    background-color: $--color-white;
                    // .el-tabs__item {
                    //     border-bottom: 0;
                    // }
                    .el-tabs__item.is-active {
                        color: $--color-primary;
                    }
                }
            }

        }

        .main-body {
            height: calc(100vh - 135px);
            overflow-y: auto;
            padding: 10px;
            background: #FFFFFF;
        }
    }
}

.el-menu-vertical:not(.el-menu--collapse) {
    width: 230px;
    min-height: 400px;
}

.el-menu {
    border: none;
    background-color: $menu-light-bg;

    .el-menu-item {
        background-color: $menu-light-bg;
    }

    .el-sub-menu {
        .el-menu-item {
            background-color: $menu-light-bg;
        }
    }

    .el-menu-item * {
        vertical-align: middle;
    }

    .el-menu-item,
    .el-sub-menu__title {
        height: 45px;
        line-height: 45px;
        color: $--color-white;
    }

    .el-menu-item {
        &:hover {
            color: $--color-white !important;
            background: $menu-hover;
        }
    }

    .el-sub-menu__title {
        &:hover {
            color: $--color-white !important;
            background: $menu-hover;
        }
    }

    .el-menu-item.is-active {
        color: $--color-primary !important;
    }

    .el-sub-menu__title {
        color: $--color-white !important;
        background: $menu-light-bg;
    }

    .el-submenu__title {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .is-opened {
        .el-menu-item {
            background-color: $menu-dark-bg !important;
        }

        .el-menu-item {
            &:hover {
                background-color: $menu-hover !important;
            }
        }
    }
}

.el-menu--popup {
    padding: 0;
}

.small-menu {
    background-color: $menu-light-bg;

    .el-drawer__body {
        padding: 0 !important;
        overflow-x: hidden !important;
    }
}

.el-pagination {
    .el-pager {
        li {
            margin: 0 1px;
        }
    }

    .el-icon {
        height: 1em;
    }
}

.pagination {
    display: flex;
    justify-content: flex-end;
}

@keyframes logoAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.layout-logo {
    animation: logoAnimation 1s ease-out;
}

.logo {
    height: 50px;
    border: none;
    line-height: 50px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    padding-right: 0;
    color: $--color-white;
    background-color: $menu-light-bg;

    img {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    span {
        font-weight: 600;
        line-height: 50px;
        font-size: 16px;
        font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
        vertical-align: middle;
    }
}


// 登录
.login_container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    align-items: center;
    color: #fff;
    background-image: linear-gradient(
                    to bottom right,
                    rgb(114, 135, 254),
                    rgb(130, 88, 186)
    );

    .container {
        width: 321px;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 36px;
        border-radius: 5px;
        margin: 0 auto;

        h1 {
            text-align: center;
            margin-bottom: 30px;
        }

        .captcha {
            width: 100px;
            height: 32px;
            background: #ffffff;
        }

        .el-button {
            width: 100%;
        }
    }
}

// 文章新增、编辑
.wave-uploader {
    width: 100%;
}

.wave-uploader .wave-img {
    width: 300px;
    height: 178px;
    display: block;
}

.wave-uploader .el-upload {
    border: 1px dashed #dcdfe6;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .2s;
}

.wave-uploader .el-upload:hover {
    border-color: #409eff;
}

.el-icon.wave-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 300px;
    height: 178px;
    text-align: center;
}

.tinymce-box {
    width: 100%;
}